package com.joysuch.wwyt.edu.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author : pp
 * @date : Created in 2021/4/16 9:43
 */
@Data
public class WwytEduCertificateQueryParam extends PageParam {
    //姓名或者工号
    @ApiModelProperty(value = "姓名或者工号", example = "张三")
    private String nameOrCode;

    //证书类型id 为空查所有
    @ApiModelProperty(value = "证书类型id")
    private Long certTypeId;

    //证书id
    @ApiModelProperty(value = "证书id")
    private Long certId;

    //证书编号
    @ApiModelProperty(value = "证书编号")
    private String certNo;

    //有效期范围查询开始时间
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "有效期范围查询开始时间", example = "2019-10-06")
    private Date effectQueryStartTime;

    //有效期范围查询结束时间
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "有效期范围查询结束时间", example = "2022-10-06")
    private Date effectQueryEndTime;

    //复审日期查询开始时间
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "复审日期查询开始时间", example = "2019-10-06")
    private Date reviewQueryStartTime;

    //复审日期查询结束时间
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "复审日期查询结束时间", example = "2023-10-06")
    private Date reviewQueryEndTime;

    @ApiModelProperty(value = "持证状态", example = "1")
    private Integer certificateStatus;

    @ApiModelProperty(value = "人员/承包商人员flag 0: 人员; 1 承包商人员")
    private Boolean userContractorFlag;

    @ApiModelProperty(value = "有效状态状态 0有效; -1已过期; 1即将过期")
    private String certStatus;
}
